package com.liao.rent.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 用户角色表
 * </p>
 *
 * @author liao
 * @since 2024-11-24
 */
@Getter
@Setter
@TableName("sys_role")
@Schema( description = "用户角色表")
public class SysRole implements Serializable {

    private static final long serialVersionUID = 1L;

   @Schema(title = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

   @Schema(title = "角色名")
    @TableField("role_name")
    private String roleName;

   @Schema(title = "角色说明")
    @TableField("role_description")
    private String roleDescription;

   @Schema(title = "角色标志")
    @TableField("role_code")
    private String roleCode;
}
